package 设计模式.代理模式.静态代理模式;

public class Proxy implements Rent {

    private Host host;

    public Proxy() {
    }

    public Proxy(Host host) {
        this.host = host;
    }

    @Override
    public void rent() {
        seeHouse();
        host.rent();
        heTong();
        fare();
    }

    //看房
    public void seeHouse(){
        System.out.println("中介带你看房！");
    }
    //签合同
    public void heTong(){
        System.out.println("中介和你签合同！");
    }
    //看房
    public void fare(){
        System.out.println("中介收取中介费！");
    }
}
